package main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
	@SuppressWarnings("resource")
	public static void main(String[] args) {
//		ApplicationContext ac = new ClassPathXmlApplicationContext("knights.xml");
//		Knight knight = (Knight) ac.getBean("knight");
//		knight.embarkOnQuest();
		
//		ApplicationContext ac = new ClassPathXmlApplicationContext("spring-idol.xml");
		ApplicationContext ac = new ClassPathXmlApplicationContext("b.xml");
		Performer performer = (Performer) ac.getBean("knifeJuggler");
		performer.perform();
	}
}
